\documentclass{standalone}

\usepackage{pgfplots}
\pgfplotsset{compat=1.14, samples=5}

\begin{document}

\begin{tikzpicture}
\begin{axis}[%
    xmin=-20000, xmax=20000,
    ymin=-20000, ymax=20000,
    xtick={\pgfkeysvalueof{/pgfplots/xmin},\pgfkeysvalueof{/pgfplots/ymin}+1e4,...,\pgfkeysvalueof{/pgfplots/xmax}},
    ytick={\pgfkeysvalueof{/pgfplots/ymin},\pgfkeysvalueof{/pgfplots/ymin}+10000,...,\pgfkeysvalueof{/pgfplots/ymax}},
    ]
\addplot[domain=-20000:20000, smooth, blue, thick]{x};
\end{axis}
\end{tikzpicture}
\end{document} 
